//
//  ViewController.swift
//  HueTestDemo
//
//  Created by 李煜 on 2023/3/13.
//

import UIKit
import Hue
class ViewController: UIViewController {

  override func viewDidLoad() {
    super.viewDidLoad()
    let white = UIColor(hex: "#ffffff")
    let black = UIColor(hex: "#000000")
    let red = UIColor(hex: "#ff0000")
    let blue = UIColor(hex: "#0000ff")
    let green = UIColor(hex: "#00ff00")
    let yellow = UIColor(hex: "#ffff99")
    if white.isDark{}
    if white.isBlackOrWhite{}

//gradients
    let gradient = [UIColor.black, UIColor.orange].gradient()

    let secondGradient = [UIColor.black, UIColor.orange].gradient { gradient in
      gradient.locations = [0.25, 1.0]
      return gradient
    }

    let circle = UIView(frame: .init(x: 100, y: 400, width: 100, height: 100))
    view.addSubview(circle)
    circle.layer.cornerRadius = 50
    circle.layer.masksToBounds = true
//    circle.backgroundColor = 


  }


}

